﻿using KAsFrame.Application.Contracts;
using KAsFrame.Common.Const;
using KAsFrame.Common.Controllers;
using KAsFrame.Domain.School.Dto;
using KAsFrame.Domain.School.Entities;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

namespace KAsFrame.HttpAPI.Controllers
{
    [Route(ConstConfig.ApiRouteConfig)]
    [ApiController]
    public class StudentController : CommonCurdController<int, Student, StudentCreateDto, StudentCreateDto, StudentDto>
    {

        private new readonly IStudentAppService _appService;

        public StudentController(IStudentAppService appService) : base(appService)
        {
            _appService = appService;
        }

        //其他action
        [HttpGet]
        public async Task<bool> TestAsync()
        {
            return await _appService.TestAsync();
        }
    }
}

